package com.example.shirodemo.mapper;

import com.example.shirodemo.controller.vo.UserAdminVo;import com.example.shirodemo.controller.vo.UserRoleVo;import com.example.shirodemo.entity.SUser;import org.apache.ibatis.annotations.Param;import java.util.List;

/**
 * @Author 绫小路
 * @Date 2021/1/15
 */

public interface SUserMapper {
  int deleteByPrimaryKey(Integer id);

  int insertSelective(SUser record);

  SUser selectByPrimaryKey(Integer id);

  int updateByPrimaryKeySelective(SUser record);

  int updateByPrimaryKey(SUser record);

  SUser get(String username);

  List<UserAdminVo> getList(@Param("search") String search);

  List<UserRoleVo> getUserRole(@Param("userId") Integer userId);

  int deleteUserRole(@Param("userId") Integer userId);

  int addUserRole(@Param("userId") Integer userId, @Param("ids") List<Integer> ids);
}